package com.iotechn.unimall.admin.api.frontutil;

import com.iotechn.unimall.core.annotation.HttpMethod;
import com.iotechn.unimall.core.annotation.HttpOpenApi;
import com.iotechn.unimall.core.annotation.HttpParam;
import com.iotechn.unimall.core.annotation.HttpParamType;
import com.iotechn.unimall.core.annotation.param.NotNull;
import com.iotechn.unimall.core.exception.ServiceException;
import com.iotechn.unimall.data.domain.ShopDiscussDO;
import com.iotechn.unimall.data.domain.ShopOneDO;
import com.iotechn.unimall.data.domain.UserShopDO;
import com.iotechn.unimall.data.dto.ConfigDTO;
import com.iotechn.unimall.data.dto.ShopInfo;
import com.iotechn.unimall.data.dto.goods.LogDTO;
import com.iotechn.unimall.data.model.Page;

import java.util.List;

@HttpOpenApi(group = "admin.front", description = "前端通用工具")
public interface AdminFrontUtilService {

    @HttpMethod(description = "分类下拉")
    public Object pgCateGory(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId
    ) throws Exception;

    @HttpMethod(description = "区县下拉")
    public Object areaOption(
            @NotNull @HttpParam(name = "adminId", type = HttpParamType.ADMIN_ID, description = "管理员ID") Long adminId
    ) throws Exception;

    @HttpMethod(description = "按区县分组")
    public Object shopGroupByArea( ) throws Exception;


    @HttpMethod(description = "项目列表")
    public Object shopList() throws Exception;

    /**
     * 在建项目列表
     * @param page
     * @param limit
      * @return
     * @throws ServiceException
     */
    @HttpMethod(description = "项目列表")
    public Page<UserShopDO> shopListFront(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit) throws ServiceException;
    @HttpMethod(description = "各镇项目分布情况")
    public List<ShopInfo> areaShopListFront() throws ServiceException;

    /**
     * 问题列表
     * @param page
     * @param limit
     * @return
     * @throws ServiceException
     */
    @HttpMethod(description = "预警整改列表")

    public Page<ShopDiscussDO> discussListFront(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit) throws ServiceException;
    @HttpMethod(description = "日志")
    public Page<LogDTO> logListFront(
            @HttpParam(name = "type", type = HttpParamType.COMMON, description = "") Integer type,
            @HttpParam(name = "page", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页码长度", valueDef = "20") Integer limit
            ) throws ServiceException;

    /**
     * 监理打卡列表
     * @param page
     * @param limit
     * @return
     * @throws ServiceException
     */
    @HttpMethod(description = "打卡列表")

    public Page<ShopOneDO> dakaListFront(
            @HttpParam(name = "pageNo", type = HttpParamType.COMMON, description = "页码", valueDef = "1") Integer page,
            @HttpParam(name = "limit", type = HttpParamType.COMMON, description = "页长度", valueDef = "20") Integer limit) throws ServiceException;
    @HttpMethod(description = "基础信息列表")
    public ConfigDTO getMerchant();


}
